import model.Card

class Menu(val title: String, val menu: List<Card>, val cancelable: Boolean, val multiSelect: Boolean = false) {
    fun validate(selection: List<Card>): Boolean {
        if (selection.isEmpty()) return cancelable
        if (selection.size() > 1 && !multiSelect) return false
        return selection.all { it in menu }
    }
}

